{% load future wenlincms_tags wlcore_tags report_tags %}

<div class="report-box hidetrbox">
    <h3 class="report-title">ICP备案信息</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ icp_objs|length }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table">
        <tr>
            <th width="80">审核时间</th>
            <th width="180">网站名称</th>
            <th width="80">网站域名</th>
            <th width="60">单位性质</th>
            <th width="80">备案号</th>
        </tr>
        {% for res in icp_objs %}
            <tr class="hidetr">
                <td>{{ res.tgsj|elfbztbdate }}</td>
                <td>{{ res.wzmc|elweizhi }}</td>
                <td>{{ res.host|elweizhi }}</td>
                <td>{{ res.dwxz|elweizhi }}</td>
                <td>{{ res.bah|elweizhi }}</td>
            </tr>
        {% endfor %}
    </table>
</div>

{#<div class="report-box hidetrbox">#}
{#    <h3 class="report-title">商标信息</h3>#}
{#    <span class="report-numallbox"><span class="report-numbox">0</span>条</span>#}
{##}
{#    <table class="report-table">#}
{#        <tr></tr>#}
{#        <tr></tr>#}
{#    </table>#}
{#</div>#}

<div class="report-box hidetrbox">
    <h3 class="report-title">著作权</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ zzq_objs|length }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table">
        <tr>
            <th width="80">公告日期</th>
            <th width="250">作品名称</th>
            <th width="80">分类号</th>
            <th width="80">著作权人</th>
            <th width="60">详情</th>
        </tr>
        {% for res in zzq_objs %}
            <tr class="hidetr">
                <td>{{ res.ggrq|elfbztbdate }}</td>
                <td>{{ res.zpmc|elweizhi }}</td>
                <td>{{ res.flh|elweizhi }}</td>
                <td>{{ res.zzqr|elweizhi }}</td>
                <td><span onclick="showdetail(this)" class="showdetail-btn">查看详情</span></td>
            </tr>
            <tr>
                <td class="tablecontent hidedetail" colspan="5">
                    <table class="report-table inline-table">
                        <tr>
                            <td class="td3" width="20">软件全称:</td>
                            <td width="100">{{ res.rjqc|elweizhi }}</td>
                            <td class="td3" width="20">&nbsp;</td>
                            <td width="100">&nbsp;</td>
                        </tr>
                        <tr>
                            <td class="td3">软件简称:</td>
                            <td>{{ res.rjjc|elweizhi }}</td>
                            <td class="td3">登记日期:</td>
                            <td>{{ res.djrq|elfbztbdate }}</td>
                        </tr>
                        <tr>
                            <td class="td3">登记号:</td>
                            <td>{{ res.djh|elweizhi }}</td>
                            <td class="td3">公告类型:</td>
                            <td>{{ res.gglx|elweizhi }}</td>
                        </tr>
                        <tr>
                            <td class="td3">首次发表日期:</td>
                            <td>{{ res.fbrq|elfbztbdate }}</td>
                            <td class="td3">版本号:</td>
                            <td>{{ res.bbh|elweizhi }}</td>
                        </tr>
                    </table>
                </td>
            </tr>
        {% endfor %}
    </table>
</div>

<div class="report-box hidetrbox">
    <h3 class="report-title">专利信息</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ el_patents.count|elweizhi:5 }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table">
        <tr>
            <th width="80">专利号</th>
            <th width="180">专利名</th>
            <th width="80">申请日期</th>
            <th width="80">类别</th>
            <th width="60">状态</th>
            <th width="60">摘要</th>
        </tr>
        {% for res in el_patents %}
            <tr class="hidetr">
                <td>{{ res.patentid.patentno }}</td>
                <td>{{ res.patentid.patname }}</td>
                <td>{{ res.patentid.applicant_date_patent|date:"Y-m-j"|elweizhi }}</td>
                <td>{{ res.patentid.get_patent_class_display|elweizhi }}</td>
                <td>{{ res.patentid.get_patent_state_display|elweizhi }}</td>
                <td><span onclick="showdetail(this)" class="showdetail-btn">查看详情</span></td>
            </tr>
            <tr>
                <td class="tablecontent hidedetail" colspan="6">
                    <table class="report-table">
                        <tr>
                            <td>{{ res.patentid.patent_abstract|elweizhi }}</td>
                        </tr>
                    </table>
                </td>
            </tr>
        {% endfor %}
    </table>
</div>


<div class="report-box hidetrbox">
    <h3 class="report-title">土地信息</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ land_objs|length }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table">
        <tr>
            <th width="60">行政区</th>
            <th width="150">标题</th>
            <th width="60">土地用途</th>
            <th width="60">面积(公顷)</th>
            <th width="60">成交价(万)</th>
            <th width="60">出让年限</th>
            <th width="40">详情</th>
        </tr>
        {% for res in land_objs %}
            <tr class="hidetr">
                <td>{{ res.qjx|elweizhi }}</td>
                <td>{{ res.title|elweizhi }}</td>
                <td>{{ res.tdyt|elweizhi }}</td>
                <td>{{ res.tdmj|elweizhi }}</td>
                <td>{{ res.cjjg|elweizhi }}</td>
                <td>{{ res.crnx|elweizhi }}</td>
                <td><span onclick="showdetail(this)" class="showdetail-btn">查看详情</span></td>
            </tr>
            <tr>
                <td class="tablecontent hidedetail" colspan="7">
                    <table class="report-table inline-table">
                        <tr>
                            <td class="td3" width="20">公告类别:</td>
                            <td width="100">{{ res.gglb|elweizhi }}</td>
                            <td class="td3" width="20">公示期:</td>
                            <td width="100">{{ res.gsq|elweizhi }}</td>
                        </tr>
                        <tr>
                            <td class="td3">单位地址:</td>
                            <td>{{ res.dwdz|elweizhi }}</td>
                            <td class="td3">受让单位:</td>
                            <td>{{ res.srdw|elweizhi }}</td>
                        </tr>
                        <tr>
                            <td class="td3">地块位置:</td>
                            <td>{{ res.dkwz|elweizhi }}</td>
                            <td class="td3">宗地编号:</td>
                            <td>{{ res.zdbh|elweizhi }}</td>
                        </tr>
                        <tr>
                            <td class="td3">联系人:</td>
                            <td>{{ res.lxr|elweizhi }}</td>
                            <td class="td3">联系单位:</td>
                            <td>{{ res.lxdw|elweizhi }}</td>
                        </tr>
                        <tr>
                            <td class="td3">联系电话:</td>
                            <td>{{ res.lxdh|elweizhi }}</td>
                            <td class="td3">Email:</td>
                            <td>{{ res.email|elweizhi }}</td>
                        </tr>
                        <tr>
                            <td class="td3">邮政编码:</td>
                            <td>{{ res.postcode|elweizhi }}</td>
                            <td class="td3">备注:</td>
                            <td>{{ res.bz|elweizhi }}</td>
                        </tr>
                    </table>
                </td>
            </tr>
        {% endfor %}
    </table>
</div>

<div class="report-box hidetrbox">
    <h3 class="report-title">动产抵押信息</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ el_morts.count|elweizhi:5 }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table ">
        <tr>
            <th width="100">登记证号</th>
            <th width="100">抵押权人</th>
            <th width="120">登记机关</th>
            <th width="100">登记日期</th>
            <th width="120">状态标识</th>
            <th width="80">抵押详情</th>
        </tr>
        {% for res in el_morts %}
            <tr class="hidetr">
                <td>{{ res.MORREGCNO|elweizhi }}</td>
                <td>{{ res.MORTGAGOR|elweizhi }}</td>
                <td>{{ res.REGORG|elweizhi }}</td>
                <td>{{ res.REGIDATE|date:"Y-m-j"|elweizhi }}</td>
                <td>{{ res.get_MORTYPE_display|elweizhi }}</td>
                <td><span onclick="showdetail(this)" class="showdetail-btn">查看详情</span></td>
            </tr>
            <tr>
                <td class="tablecontent hidedetail" colspan="6">
                    <table class="report-table">
                        <tr>
                            <th width="150">被担保范围</th>
                            <th width="100">被担保主债权数额(万元)</th>
                            <th width="90">履约起始日期</th>
                            <th width="90">履约截止日期</th>
                            <th width="80">注销日期</th>
                        </tr>
                        <tr>
                            <td>{{ res.the_claim.WARCOV|elweizhi }}</td>
                            <td>{{ res.the_claim.PRICLASECAM|elweizhi }}</td>
                            <td>{{ res.the_claim.PEFPERFORM|date:"Y-m-j"|elweizhi }}</td>
                            <td>{{ res.the_claim.PEFPERTO|date:"Y-m-j"|elfloat:1|elweizhi }}</td>
                            <td>{{ res.CANDATE|date:"Y-m-j"|elweizhi }}</td>
                        </tr>
                    </table>
                </td>
            </tr>
        {% endfor %}
    </table>
</div>

<div class="report-box hidetrbox">
    <h3 class="report-title">动产抵押物信息</h3>
    <span class="report-numallbox"><span class="report-numbox">{{ el_mort_guas.count|elweizhi:5 }}</span>条</span>

    <div class="hidetr_btn" val="0">&or;&nbsp;显示全部</div>
    <table class="report-table ">
        <tr>
            <th width="200">抵押物名称</th>
            <th width="150">所有权属</th>
            <th width="200">抵押物描述</th>
        </tr>
        {% for res in el_mort_guas %}
            <tr class="hidetr">
                <td>{{ res.GUANAME|elweizhi }}</td>
                <td>{{ res.OWN|elweizhi }}</td>
                <td>{{ res.GUADES|elweizhi }}</td>
            </tr>
        {% endfor %}
    </table>
</div>

<script>
    hidetrbox();
</script>
